<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

function check_login() {
    if (isset($_SESSION['member'])) {
        if (isset($_SESSION['member']['id'])) {
            return TRUE;
        }
    }
    return FALSE;
}



